import { post, postWithLoadTip, get } from '@/utils/request';

export function getCurrentUser(): any {
  return post(`/pxks-api/user/current`, undefined);
}

export function update(data: any): any {
  return postWithLoadTip(`/pxks-api/user/update`, data);
}

export function changePassword(data: any): any {
  return postWithLoadTip(`/pxks-api/user/changePassword`, data);
}

export function comment(data: any): any {
  return post(`/pxks-api/user/comment`, data);
}

export function event(data: any): any {
  return post(`/pxks-api/user/event`, data);
}

export function feedback(data: any): any {
  return postWithLoadTip(`/pxks-api/user/feedback`, data);
}

export function train(data: any): any {
  return post(`/pxks-api/user/train`, data);
}

//第三方登录
export function thirdLlogin(data: any) {
  return get(`/pxks-api/user/loginThird`, data);
}
